package com.leyou.item;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.mybatis.spring.annotation.MapperScan;
@SpringBootApplication(scanBasePackages = {"com.leyou.item","com.leyou.common.advice"})
//这里添加了两个扫面包"
//    一个是当前项目扫面包
//    一个是刚刚定义的advice的扫描包
@MapperScan("com.leyou.item.mapper")
public class LyItemApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyItemApplication.class,args);
        System.out.println("启动类,启动成功-->");
    }
}
